export const config = {
  items: [{
    label: '标题',
    required: true,
    rules: [
        { required: true, message: '请输入标题', trigger: 'blur' },
        { min: 1, max: 50, message: '标题不能超过50个字符', trigger: 'blur' },
        { validator: 'trimValid', trigger: 'blur' }
    ],
    placeholder: '请输入标题',
    type: 'text',
    key: 'title',
    componentName: 'el-input'
  }, {
    label: '链接',
    required: true,
    rules: [
        { required: true, message: '请输入链接', trigger: 'blur' },
        { min: 1, max: 200, message: '链接不能超过200个字符', trigger: 'blur' },
        { validator: 'urlValid', message: '链接必须是url格式', trigger: 'blur' }
    ],
    type: 'text',
    key: 'url',
    componentName: 'el-input'
  }, {
    label: '新开窗口',
    options: [{
      label: '1',
      text: '是'
    }, {
      label: '0',
      text: '否'
    }],
    type: 'radio',
    key: 'newwindow',
    disabledRender: true,
    componentName: 'el-radio'
  }, {
    label: '是否有效',
    disabledRender: true,
    options: [{
      label: '1',
      text: '是'
    }, {
      label: '0',
      text: '否'
    }],
    type: 'radio',
    key: 'status',
    componentName: 'el-radio'
  }
  //   {
  //   slotKey: 'footer'
  // }
  ]
}
export const formData = {
  title: '',
  url: '',
  newwindow: '1',
  status: '1'
}

